package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaProject;
import com.ruoyi.oa.domain.OaPurchaesPayment;
import com.ruoyi.oa.domain.vo.OaPurchaesPaymentVo;
import com.ruoyi.oa.domain.bo.OaPurchaesPaymentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 付款申请Service接口
 *
 * @author ruoyi
 * @date 2023-04-25
 */
public interface IOaPurchaesPaymentService {

    /**
     * 查询付款申请
     */
    OaPurchaesPaymentVo queryById(String id);

    /**
     * 通过项目名称查询付款申请
     */
    OaPurchaesPaymentVo queryByProjectName(String projectName);

    /**
     * 查询付款申请列表
     */
    TableDataInfo<OaPurchaesPaymentVo> queryPageList(OaPurchaesPaymentBo bo, PageQuery pageQuery);

    /**
     * 查询付款申请列表
     */
    List<OaPurchaesPaymentVo> queryList(OaPurchaesPaymentBo bo);

    /**
     * 新增付款申请
     */
    OaPurchaesPaymentBo insertByBo(OaPurchaesPaymentBo bo);

    /**
     * 修改付款申请
     */
    OaPurchaesPayment updateByBo(OaPurchaesPaymentBo bo);

    /**
     * 校验并批量删除付款申请信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);


    /**
     * 获取没有付款申请的项目信息
     * @return
     */
    public List<OaProject> getProjectList();
}
